package cn.blue.system.mapper;

import cn.blue.system.domain.Permission;
import cn.blue.base.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hui
 * @since 2022-10-24
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    //根据sn编码查询对象
    Permission loadBySn(String permissionSn);

    void addMiddle(@Param("rid") Long id,@Param("permissions") List<Long> permissions);

    void deleteMiddle(Long id);

    List<String> findByLogininfoId(Long id);
}
